projects
/
gtk4.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1b60361
)
quartz: Implement gtk_clipboard_get_selection
author
Philip Chimento
<philip.chimento@gmail.com>
Thu, 3 Nov 2016 06:37:29 +0000
(23:37 -0700)
committer
John Ralls
<jralls@ceridwen.us>
Wed, 19 Jul 2017 01:44:21 +0000
(18:44 -0700)
This function is trivial and can be copied from the X11 implementation.
https://bugzilla.gnome.org/show_bug.cgi?id=772281
gtk/gtkclipboard-quartz.c
patch
|
blob
|
history
diff --git
a/gtk/gtkclipboard-quartz.c
b/gtk/gtkclipboard-quartz.c
index 90c89af6f0eed0bcbb7d95cfa6840fd8e0956e16..765e36280123199fcd2afcb2d4c285f467ec9c54 100644
(file)
--- a/
gtk/gtkclipboard-quartz.c
+++ b/
gtk/gtkclipboard-quartz.c
@@
-1107,3
+1107,17
@@
_gtk_clipboard_store_all (void)
list = list->next;
}
}
+
+/**
+ * gtk_clipboard_get_selection:
+ * @clipboard:
+ *
+ * Since: 3.22
+ */
+GdkAtom
+gtk_clipboard_get_selection (GtkClipboard *clipboard)
+{
+ g_return_val_if_fail (GTK_IS_CLIPBOARD (clipboard), GDK_NONE);
+
+ return clipboard->selection;
+}